<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" import="java.sql.*"%>
<%@ taglib prefix="t" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title></title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/app.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/font-awesome-4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/subpage.css">
<script language="javascript">
 

	
	function delete_(){//审核通过，状态刷新，改数据
		document.getElementById("myPopup").style.display = "none";
		//这里改数据
		//````````
		history.go(0)
	}
</script>
</head>
<body>
    <h1 class="callout">审核记录</h1>
    <h3><a href="${pageContext.request.contextPath}/admin/unAuditMessage" class="wzc-btn">返回审核界面</a></h3>
    <div class="" style="text-align:center;">
        <table class="wzc-table">
            <tr>
                <th>管理员</th>
                <th>帖子ID</th>
                <th>审核时间</th>
                <th>审核结果</th>
                <th>操作</th>
            </tr>

            <t:forEach items="${auditList}" var="audit" varStatus="a" >
                <tr>
                    <td>${audit.administratorID}</td>
                    <td>${audit.messageID}</td>
                    <td>${audit.auditDate}</td>
                    <td>${audit.auditStatus}</td>
                    <td>
                        <a href="${pageContext.request.contextPath}/message/findMessageById?messageID=${audit.messageID}">
                            <i class="fa fa-file fa-fw"></i> 详情</a>
                        <a href="${pageContext.request.contextPath}/admin/AuditFalse?messageID=${audit.messageID}">
                            <i class="fa fa-edit fa-fw"></i> 不通过</a>
                        <a href="${pageContext.request.contextPath}/admin/AuditTrue?messageID=${audit.messageID}">
                            <i class="fa fa-edit fa-fw"></i> 通过</a>
                        <a href="${pageContext.request.contextPath}/admin/deleteMessage?messageID=${audit.messageID}">
                            <i class="fa fa-trash fa-fw"></i> 删除帖子</a>
                    </td>
                </tr>
            </t:forEach>

        </table>
       
     
    </div>
</body>
</html>